package com.zzdz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Zzdz
 */
@EnableAsync
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.zzdz.*.mapper")
public class ZzdzShiroApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ZzdzShiroApplication.class);
    }
    public static void main(String[] args) {
        new SpringApplicationBuilder(ZzdzShiroApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }

}
